<template>
	<view class="empty-box" :style="[styles]">
		<slot>暂无数据</slot>
	</view>
</template>

<script>
	export default {
		props: ['top'],
		computed: {
			styles() {
				return {
					'padding-top': this.top || '120px'
				}
			}
		}
	}
</script>

<style lang="scss">
	.empty-box {
		text-align: center;
		color: #B5B5B3;
	}
</style>